<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        #GD{
             width: 400px;
            line-height: 50px;
            font-size: 30px;
            border: 1px solid #000;
            margin-top: 50px;
            /*overflow: auto;*/
            overflow: hidden;
        }
    </style>
</head>
<body>
    <h1></h1>
    <hr>


    <div id="GD">LoremipsumdolorsitametconsecteturadipisicingelitDoloribusanimidoloresadatqueaspernaturaccusamusaliasconsequunturnamMinuserrorobcaecatiesseconsequunturrecusandaedoloribusetenimadquisq</div>


    <div style="height: 3000px"></div>

    <script>
        setInterval(function(){
            GD.scrollLeft += 10;
            console.log(GD.scrollLeft);
        }, 1000);
    </script>

</body>
</html>